/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.soa.service.busi.wx;

import com.lianzt.commondata.AbstractCommonData;
import com.soa.service.BaseService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *S90002
 * 获取预约检测站
 * @author chang
 */
@Service
public class GetYyjcz extends BaseService{

    @Override
    public String[] keys() {
        return null;
    }

    @Override
    public void execute(AbstractCommonData in, AbstractCommonData inhead, AbstractCommonData out, AbstractCommonData outhead) {
        String jyjgbh = in.getStringValue("jyjgbh");
        AbstractCommonData session = getSession(in);
        List<AbstractCommonData> list = session.getArrayValue("jczxx");
        for (int i = 0; i < list.size(); i++) {
            AbstractCommonData abs = list.get(i);
            if(jyjgbh.equals(abs.getStringValue("jyjgbh"))){
                String zb = abs.getStringValue("zb");
                String  jd = zb.split(",")[0];
                String  wd = zb.split(",")[1];
                out.putStringValue("jd", jd);
                out.putStringValue("wd", wd);
                out.putDataValue("jcz", abs);
            }
        }
     }
    
}
